<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="UTF-8">
        <title>Hello</title>
        <link rel="stylesheet" th:href="@{/css/index.css}" />
    </head>
    <body>
    <script th:inline="javascript">
        var msg='Hello '+[[${userName}]]+'!';
        alert(msg);
    </script>
    </body>
</html>